const routes = [
  {
    path: '/footer',
    name: 'footer',
    component: () => import('../views/Footer.vue'),
    children: [
      {
        path: '/footer/host',
        name: 'host',
        meta: { title: '首页' },
        component: () => import('../views/Footer/Host.vue'),
      },
      {
        path: '/footer/tuan',
        name: 'tuan',
        meta: { title: '爆爆团' },
        component: () => import('../views/Footer/Tuan.vue'),
      },
      {
        path: '/footer/mine',
        name: 'mine',
        meta: { title: '我的' },
        component: () => import('../views/Footer/Mine.vue'),
      },
      {
        path: '/footer/list',
        name: 'list',
        meta: { title: '订单' },
        component: () => import('../views/Footer/List.vue'),
      },
      {
        path: '/footer',
        redirect: '/footer/host'
      },
      {
        path: '*', // * 表示匹配任何路由(所有路由)
        component: () => import('../views/NotFound.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    meta: { title: '登录页' },//meta路由原信息
    component: () => import('../views/Login.vue'),
  },
  {
    path: '/more/:id',
    name: 'more',
    meta: { title: '详情页' },
    component: () => import('../views/More.vue'),
    // children: [
    //   {
    //     path: '/more/done/:id',
    //     name: 'done',
    //     component: () => import('../views/More/Done.vue'),
    //   },
    //   {
    //     path: '/more/sell',
    //     name: 'sell',
    //     component: () => import('../views/More/Sell.vue'),
    //   },
    //   {
    //     path: '/more/eval',
    //     name: 'eval',
    //     component: () => import('../views/More/Eval.vue'),
    //   },
    //   {
    //     path: '/more',
    //     redirect:'/more/done'
    //   },
    //   {
    //     path: '*', // * 表示匹配任何路由(所有路由)
    //     component: () => import('../views/NotFound.vue')
    //   }
    // ]
  },
  {
    path: '/',
    redirect: '/footer',
  },
  {
    path: '*', // * 表示匹配任何路由(所有路由)
    component: () => import('../views/NotFound.vue')
  }
]

export default routes;